﻿namespace WMS6.Web.CommonMethodServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DataContract(Name="CycleCountRule4DDL", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class CycleCountRule4DDL : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private string CC_ADJ_RULE_IDField;
        [OptionalField]
        private string DESCRField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public string CC_ADJ_RULE_ID
        {
            get
            {
                return this.CC_ADJ_RULE_IDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.CC_ADJ_RULE_IDField, value))
                {
                    this.CC_ADJ_RULE_IDField = value;
                    this.RaisePropertyChanged("CC_ADJ_RULE_ID");
                }
            }
        }

        [DataMember]
        public string DESCR
        {
            get
            {
                return this.DESCRField;
            }
            set
            {
                if (!object.ReferenceEquals(this.DESCRField, value))
                {
                    this.DESCRField = value;
                    this.RaisePropertyChanged("DESCR");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }
    }
}

